package router

import (
	"zsc-boot/app/customer/api"
	"zsc-boot/core/web"
)

func InitOrderRouterGroup() {
	orderApi := api.NewOrderApi()
	orderAddApi := api.NewOrderAddApi()
	orderGroup := web.GetGin().Group("/order")
	orderGroup.GET("", orderApi.Detail)
	orderGroup.POST("", orderApi.Create)
	orderGroup.PUT("", orderApi.Update)
	orderGroup.DELETE("", orderApi.Delete)
	orderGroup.GET("/allList", orderApi.AllList)

	orderApiGroup := web.GetGin().Group("/orderAdd")
	orderApiGroup.POST("", orderAddApi.Create)
	orderApiGroup.PUT("", orderAddApi.Update)
	orderApiGroup.DELETE("", orderAddApi.Delete)
}
